package com.roncoo.education.db.dao;

import com.roncoo.education.db.entity.NewsComment;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface NewsCommentDao {

    Long insert(NewsComment news);

    List<NewsComment> findByBean(NewsComment news);

    List<NewsComment> findByBeanGetAuthor(NewsComment news);
    NewsComment findById(Long id);

    Integer findByBeanCount(NewsComment news);

    void deleteById(NewsComment news);

    void deleteByBean(NewsComment news);

    void updateById(NewsComment news);

    List<NewsComment> selectNewsCommentList(NewsComment news);
}
